package com.example.sale.user;

import cn.hutool.db.PageResult;
import com.example.sale.dto.UserQuery;
import com.example.sale.mybatis.entity.User;
import com.github.pagehelper.PageInfo;

import java.math.BigInteger;
import java.util.List;

public interface UserDao {

    int insertUser(User user);

    User selectUserById(BigInteger userId);

    User selectUserByUsername(String username);

    User selectUserByEmail(String email);

    List<User> selectUsers(User user);

    PageInfo<User> selectUsersByPage(UserQuery query);

    int updateUser(User user);

    int deleteUserById(BigInteger userId);


}